<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<include file="Public/head" />
<link href="__STATIC__/css/user.css" type="text/css" rel="stylesheet" />
</head>

<body class="body_bg">
<include file="Public/top" />

<div class="page_minheight">
<div class="login_tit login_tit_white">
  <div class="return"><a href="{:U('User/index')}"><i class="icon-fanhui"></i></a></div>
  <span>我购买的店铺</span>
</div><!--login_tit-->

<div class="page_in">
  <if condition="$lists">
  <foreach name="lists" item="v" key="k">
  <div class="order_li">
    <!--<a href="javascript:void(0)">
    <!--<a href="{:U('Home/User/order_detail',array('id'=>$v['order_id']))}">-->
      <div class="order_litit"><a href="{:U('User/order_detail',array('id'=>$v['order_id']))}">订单编号：{$v.order_sn}<span>{$v.order_id|get_order_status}</span></a></div>
      <div class="order_sli2"><a href="{:U('Goods/goodsInfo',array('id'=>$v['goods_id']))}"><span><php>if($v[goods][goods_type]==3){</php><img src="__STATIC__/images/sico_tm.png" /><php>}elseif($v[goods][goods_type]==4){</php><img src="__STATIC__/images/sico_tb.png" /><php>}elseif($v[goods][goods_type]==5){</php><img src="__STATIC__/images/sico_jd.png" /><php>}elseif($v[goods][goods_type]==6){</php><img src="__STATIC__/images/sico_qt.png" /><php>}</php></span>{$v.goods.seller_title}</a></div>
      <div class="order_sli"><div class="ll">出售价格</div><div class="rr">￥<span class="red">{$v.goods.price}</span></div></div>
      <div class="order_sli"><div class="ll">消保金额</div><div class="rr">￥<span class="red">{$v.goods.b_price}</span> &nbsp; 技术年费(￥<span class="red">{$v.goods.j_price}</span>)</div></div>
      <div class="order_sli"><div class="ll">当前应付款</div><div class="rr">￥<span class="red">{$v.pay_price}</span></div></div>
      <div class="order_sli"><div class="ll">生成时间：{$v.add_time|date='Y-m-d H:i',###}</div></div>
    <div class="order_sli2 order_slia">
      <if condition="$v[button] neq null">
      <if condition="$v[button]['pay'] neq null">
      <a href="{:U('User/order_pay',array('order_id'=>$v[order_id]))}">付款</a>
      </if>
      <if condition="$v[button]['cancel'] neq null">
      <a href="javascript:;" onclick="delete_order('{$v.order_id}')">删除</a>
      </if>
      
      <if condition="$v[button][refund] neq null ">
      <a href="{:U('User/return_order',array('order_id'=>$v[order_id]))}">申请退款</a>&nbsp;        
      </if>
      
      <if condition="$v[button]['delete'] neq null">
      <a href="javascript:;" onclick="delete_order('{$v.order_id}')">删除</a>
      </if>
      <else/>
      
      <if condition="$v[is_return] eq '0' " >
      已申请退款
      <elseif condition="$v[is_return] eq '1'"/>
      已完成退款
      <a href="javascript:;" onclick="delete_order('{$v.order_id}')">删除</a>
      <elseif condition="$v[is_return] eq '2'"/>
      申请已被拒绝
      <span class="reject_why">
      <span class="reject_zw" onmouseover="reject_show('{$v[return_info]}',this)" onmouseout="reject_hide()"></span>
      <i class="icon-iconhelp"></i>
      </span>
      <a href="javascript:;" onclick="delete_order('{$v.order_id}')">删除</a>
      
      <else/>
      --
      </if>
      </if>
    </div><!--order_slia-->
  </div><!--order_li-->
  </foreach>
  
  {$page}
  
  <else />
  <div class="nocase">
    <div class="h1"><img src="__STATIC__/images/nothing.png"></div>
    <div class="h2">暂无商铺</div>
  </div>
  </if>
</div><!--page_in-->
</div><!--page_minheight-->

<script>
function delete_order(id)
{
	url = "/index.php?m=Mobile&c=User&a=delete_order&order_id="+id;
	tip_confirm('确定删除吗?',url);
}
</script>

<include file="Public/footer" />
<script src="__STATIC__/js/global_after.js" type="text/javascript"></script>
</body>
</html>